package ce.com.cenewbluesdk.entity.k6;

import java.io.Serializable;

import ce.com.cenewbluesdk.uitl.ByteUtil;

/**
 * Created by Administrator on 2016/11/28 0028.
 */
public class K6_Sport implements Serializable {




    private int starTime;
    private int walkSteps;
    private int distance;
    private int calories;




    public K6_Sport(byte[] bytes) {
        this.starTime = ByteUtil.byte4ToInt(new byte[]{bytes[0],bytes[1],bytes[2],bytes[3]});
        this.walkSteps = ByteUtil.byte4ToInt(new byte[]{bytes[4],bytes[5],bytes[6],bytes[7]});
        this.distance = ByteUtil.byte4ToInt(new byte[]{bytes[8],bytes[9],bytes[10],bytes[11]});
        this.calories = ByteUtil.byte2ToInt(new byte[]{bytes[12],bytes[13]});
    }

    public K6_Sport() {
    }


    public int getStarTime() {
        return starTime;
    }

    public void setStarTime(int starTime) {
        this.starTime = starTime;
    }

    public int getWalkSteps() {
        return walkSteps;
    }

    public void setWalkSteps(int walkSteps) {
        this.walkSteps = walkSteps;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public int getCalories() {
        return calories;
    }

    public void setCalories(int calories) {
        this.calories = calories;
    }

    public static int getItemSize() {
        return 14;
    }


    @Override
    public String toString() {
        return "K6_Sport{" +
                "starTime=" + starTime +
                ", walkSteps=" + walkSteps +
                ", distance=" + distance +
                ", calories=" + calories +
                '}';
    }
}
